package cn.wwcyc.mapper;

import cn.wwcyc.domain.TjDev;
import cn.wwcyc.domain.TjHsy;
import cn.wwcyc.domain.TjHsyVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectKey;

import java.util.List;

/**
* @author aa
* @description 针对表【TJ_HSY】的数据库操作Mapper
* @createDate 2025-03-10 11:00:43
* @Entity cn.wwcyc.domain.TjHsy
*/
@Mapper
public interface TjHsyMapper extends BaseMapper<TjHsy> {

    List<TjHsyVo> selectPagewithObj(long current, long size, List<Long> dwIdList, String jh);

    @Insert("INSERT INTO TJ_HSY (name, ip, devtype, dwid, regtype, regdatatp, location, jh, jhdm) VALUES (#{name}, #{ip}, #{devtype}, #{dwid}, #{regtype}, #{regdatatp}, #{location}, #{jh}, #{jhdm})")
    @SelectKey(statement = "SELECT  SEQ_TJ_HSY.CURRVAL FROM dual", keyProperty = "id", before = false, resultType = long.class)
    void insertHsy(TjHsy tjHsy);

}




